/*
 * Created by SharpDevelop.
 * User: Michael
 * Date: 5/5/2007
 * Time: 1:07 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Windows.Forms;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Gui;

namespace VisualDeveloperStudio
{
/// <summary>
/// Description of the pad content
/// </summary>
public class TestPad : AbstractPadContent
{
    MyUserControl ctl;
    
    /// <summary>
    /// Creates a new TestPad object
    /// </summary>
    public TestPad()
    {
        ctl = new MyUserControl();
    }
    
    /// <summary>
    /// The <see cref="System.Windows.Forms.Control"/> representing the pad
    /// </summary>
    public override Control Control {
        get {
            return ctl;
        }
    }
    
    /// <summary>
    /// Refreshes the pad
    /// </summary>
    public override void RedrawContent()
    {
        // TODO: Refresh the whole pad control here, renew all resource strings whatever
        //       Note that you do not need to recreate the control.
    }
    
    /// <summary>
    /// Cleans up all used resources
    /// </summary>
    public override void Dispose()
    {
        ctl.Dispose();
    }
}
}
